package com.example.demo.service;

import java.util.List;
import java.util.Map;

import com.example.demo.entify.Role;
import com.example.demo.entify.User;

import org.apache.ibatis.annotations.Param;

public interface UserService {
	User login(String username, String password);
	int register(User user);
	User isExist(String username);	
	User findByUsername(String username);
	List<Role> Workers(Integer id);
	int resetPass(User user);
	int updatePass(User user);
	int updateWorkers(User user);
	int updateCustomer(User user);
	User userPower(Map<String,Object> params);
	
	int deleteUser(Integer id);

	int deleteByUid(Integer id);
	int updateUserstate(Integer userstate,String username);
	List<User> Users(Map<String,Object> params);
}
